﻿using System.Configuration;

namespace Expect.Core.Config
{    
    /// <summary>
    /// token element for reporting
    /// </summary>
    public class ReportTokenElement : ConfigurationElement
    {
        /// <summary>
        /// Gets the Name setting.
        /// </summary>
        [ConfigurationProperty("token", IsRequired = true)]
        public char Token
        {
            get { return (char)base["token"]; }
            set { base["token"] = value; }
        }

        /// <summary>
        /// Gets the Name setting.
        /// </summary>
        [ConfigurationProperty("bold", IsRequired = false)]
        public bool Bold
        {
            get { return (bool)base["bold"]; }
            set { base["bold"] = value; }
        }

        /// <summary>
        /// Gets the Name setting.
        /// </summary>
        [ConfigurationProperty("underline", IsRequired = false)]
        public bool Underline
        {
            get { return (bool)base["underline"]; }
            set { base["underline"] = value; }
        }

        /// <summary>
        /// Gets the Name setting.
        /// </summary>
        [ConfigurationProperty("italic", IsRequired = false)]
        public bool Italic
        {
            get { return (bool)base["italic"]; }
            set { base["italic"] = value; }
        }
    }
}
